package com.dmai.capacity.platform.user.pojo.request;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * 机构表
 *
 * @author
 * @email
 * @date 2024-05-22 13:36:20
 */

@Data
public class InstitutionRegisterRequest extends InstitutionRegisterAgainRequest {
    private static final long serialVersionUID = 1L;


    @NotEmpty(message = "管理员账号不能为空")
    @Length(min = 6, max = 32, message = "管理员账号至少6位")
    private String adminAccount;

    @NotEmpty(message = "管理员密码不能为空")
    @Length(min = 6, max = 20, message = "密码格式不正确")
//    @Pattern(regexp = "^{6,16}$", message = "密码格式不正确")
    private String adminPassword;

    @NotEmpty(message = "管理员密码不能为空")
    @Length(min = 6, max = 20, message = "密码格式不正确")
//    @Pattern(regexp = "^{6,16}$", message = "密码格式不正确")
    private String adminPasswordConfirm;

}
